  -- Thorngrin the Tender --
function spell0_17978(pUnit, Event) --@Enrage,n/a--
pUnit:FullCastSpellOnTarget(34670,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17978', 10376, 1)
end
function spell1_17978(pUnit, Event) --@Hellfire,n/a--
pUnit:FullCastSpellOnTarget(34659,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17978', 6000, 1)
end
function spell2_17978(pUnit, Event) --@Hellfire,n/a--
pUnit:FullCastSpellOnTarget(39131,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17978', 6000, 1)
end
function spell3_17978(pUnit, Event) --@Sacrifice,Drain--
pUnit:FullCastSpellOnTarget(34661,pUnit:GetRandomPlayer(0))
pUnit:RegisterEvent('Sorts_17978', 9000, 1)
end
function Sorts_17978(pUnit, Event)
choix_sorts_17978 = math.random(0, 3)
if choix_sorts_17978 == 0 then
pUnit:RegisterEvent('spell0_17978', 1, 1)
end
if choix_sorts_17978 == 1 then
pUnit:RegisterEvent('spell1_17978', 1, 1)
end
if choix_sorts_17978 == 2 then
pUnit:RegisterEvent('spell2_17978', 1, 1)
end
if choix_sorts_17978 == 3 then
pUnit:RegisterEvent('spell3_17978', 1, 1)
end
end
function mob17978_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17978', math.random(1500, 3000), 1)
end
function mob17978_Leave(pUnit, Event)
end
function mob17978_Kill(pUnit, Event)
end
function mob17978_Die(pUnit, Event)
pUnit:RemoveEvents();
end
RegisterUnitEvent(17978, 1, 'mob17978_Action')
RegisterUnitEvent(17978, 2, 'mob17978_Leave')
RegisterUnitEvent(17978, 3, 'mob17978_Kill')
RegisterUnitEvent(17978, 4, 'mob17978_Die')
